﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_Largemeas_IniBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Largemeas_Ini;

        void Remove(IDr_Largemeas_Ini entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDr_Largemeas_Ini;

        /// <summary>
        /// 根据路段Id与材料类型，获取铣刨面层的工艺厚度
        /// </summary>
        /// <param name="mainSegId"></param>
        /// <param name="materialType"></param>
        /// <returns></returns>
        double GetMillingThinkness(string mainSegId, int materialType);

        /// <summary>
        /// 获取所有需有大中修的路段信息
        /// </summary>
        /// <returns></returns>
        List<string> GetMainSeg();
    }
}
